﻿/*
Copyright (c) 2008 Martin Legris

Permission is hereby granted, free of charge, to any person obtaining a copy of this 
software and associated documentation files (the "Software"), to deal in the Software 
without restriction, including without limitation the rights to use, copy, modify, 
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to the following 
conditions:

The above copyright notice and this permission notice shall be included in all copies 
or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@ignore
*/
package emusic.api.data
{	
	import flash.events.DataEvent;

	/**
	 * The basic Album data returned by most LastFM webservice methods.
	 * @author Martin Legris ( http://blog.martinlegris.com )
	 */
	public class AlbumData 
	{
		protected var _image:String;
		protected var _id:Number;
		protected var _added:Date;
		protected var _name:String;
		protected var _released:Date;
		protected var _sample:String;
		protected var _siteUrl:String;
		protected var _communityRating:Number;
		
		protected var _artist:SummaryData;
		protected var _label:SummaryData;
		protected var _genre:SummaryData;
		
		public function get image():String { return _image; }
		public function set image(value:String):void { _image = value; }
		
		public function get id():Number { return _id; }
		public function set id(value:Number):void { _id = value; }
		
		public function get added():Date { return _added; }
		public function set added(value:Date):void { _added = value; }
		
		public function get name():String { return _name; }
		public function set name(value:String):void { _name = value; }
		
		public function get released():Date { return _released; }
		public function set released(value:Date):void { _released = value; }
		
		public function get sample():String { return _sample; }
		public function set sample(value:String):void { _sample = value; }
		
		public function get siteUrl():String { return _siteUrl; }
		public function set siteUrl(value:String):void { _siteUrl = value; }
		
		public function get communityRating():Number { return _communityRating; }
		public function set communityRating(value:Number):void { _communityRating = value; }
		
		public function get artist():SummaryData { return _artist; }
		public function set artist(value:SummaryData):void { _artist = value; }
		
		public function get label():SummaryData { return _label; }
		public function set label(value:SummaryData):void { _label = value; }
		
		public function get genre():SummaryData { return _genre; }
		public function set genre(value:SummaryData):void { _genre = value; }
	}
}